<h1>View User <?= $user->id ?></h1>
<?= link_to('List users', array('controller' => 'user', 'action' => 'enlist')) ?>

<p>Id: <?= $user->id ?></p>
<p>Login: <?= $user->login ?></p>
<p>Email: <?= $user->email ?></p>
<p>Hashed Password: <?= $user->hashed_password ?></p>
<p>Salt: <?= $user->salt ?></p>
<p>Created At: <?= $user->created_at ?></p>
<p>Updated At: <?= $user->updated_at ?></p>
<p>Roles:<br />
<ul>
  <? foreach($user->roles as $role) :?>
    <li><?= link_to($role->name, array('controller' => 'role', 'action' => 'view', 'id' => $role->id)) ?></li>
  <? endforeach ?>
</ul>
</p>

<?= link_to('Edit', array('controller' => 'user', 'action' => 'edit', 'id' => $user->id)) ?> |  
<?= link_to('Delete', array('controller' => 'user', 'action' => 'delete', 'id' => $user->id)) ?>